import sys

def main():
    for result in map(lambda x: "Y" if x==x[::-1] else "N", sys.stdin.readlines()):
        print(result)


if __name__ == '__main__':
    main()
